//
//  HomePageDetail.m
//  miaopai
//
//  Created by Crow Zhang on 15/11/14.
//  Copyright © 2015年 Crow Zhang. All rights reserved.
//

#import "Channel.h"

@implementation Channel

+ (Channel *)channelWithDic:(NSDictionary *)dic
{
    Channel *channel = [[Channel alloc] initWithDictionary:dic];
    channel.pic = [Pic picWithDic:[dic objectForKey:@"pic"]];
    channel.stream = [Stream  streamWithDic:[dic objectForKey:@"stream"]];
    channel.ext = [Ext extWithDic:[dic objectForKey:@"ext"]];

    channel.stat = [Stat statWithDictionary:[dic objectForKey:@"stat"]];
    channel.ext2 = [Ext2 extWithDic:[dic objectForKey:@"ext2"]];

    return [channel autorelease];
}

@end
